<?php
namespace Home\Controller;
use Think\Controller;
class ShareController extends Controller {
	public function _initialize(){
		
	}
	
	public function header(){
		$Shopcar = M('Ware_shopcar');
		
		$count = $Shopcar->where("order_id=0")->count("id");
		
		$this->assign('count',$count);
	}
	
	public function menu(){
		if( !isset($_SESSION['uid']) && $_SESSION['uid'] =='' 
			&& !isset($_SESSION['name']) && $_SESSION['name'] =='')
		{
			$this->redirect('/home/login/login');
		}
	}
}
